import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class day230516 {
    // 倒排单词
    public static void main1(String[] args) throws IOException {
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        String line;
        // 注意 hasNext 和 hasNextLine 的区别
        while ((line = buf.readLine()) != null) {
            char[] arr = line.toCharArray();
            StringBuilder ret = new StringBuilder();
            // 从后往前遍历
            for (int i = arr.length - 1; i >= 0; --i) {
                StringBuilder tmp = new StringBuilder();
                while (i >= 0 && Character.isLetter(arr[i])) {
                    tmp.append(arr[i]);
                    --i;
                }
                // 逆置后加入 ret 中
                ret.append(tmp.reverse());
                ret.append(" ");
            }
            System.out.println(ret);
        }
    }

    // 骆驼命名法
    public static void main(String[] args) throws IOException {
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while ((line = buf.readLine()) != null) {
            String[] arr = line.split("_");
            StringBuilder ret = new StringBuilder(arr[0]);
            for (int i = 1; i < arr.length; i++) {
                // 使用String 的 toUpperCase()
                ret.append(arr[i].substring(0, 1).toUpperCase());
                ret.append(arr[i].substring(1));
            }
            System.out.println(ret);
        }
    }
}
